
<!-- saved from url=(0574)http://showadsak.pubmatic.com/AdServer/js/adTagInfo.html#uParams=[operId=3&pubId=28388&siteId=28389&adId=23957&kadwidth=728&kadheight=90&kbgColor=ffffff&ktextColor=444444&klinkColor=FE6518&pageURL=http://www.wolframalpha.com/input/&frameName=http_www_wolframalpha_cominputkomli_ads_frame12838828389&kltstamp=2012-1-20%2011%3A54%3A30&ranreq=0.29542089020833373&timezone=1&screenResolution=1280x800&inIframe=0&adPosition=742x267&adVisibility=2&pmUniAdId=top_0]&nwIds=[165]&id=[top_0]&frmId=[PM_adInfo_top_0]&adServerUrl=[http://showadsak.pubmatic.com/AdServer/AdServerServlet] -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

<script type="text/javascript">
    window.PubMatic = window.PubMatic || {};
    /*  BEG : PubMatic Util Class Definaion*/
    PubMatic.UtilClass = PubMatic.UtilClass || function(){};
    PubMatic.UtilClass.prototype = {
        /*  BEG : URL Params Util */
        urlCollection : {}
        ,parseUrlForParams : function(locScope){
            var searchStr = locScope.location.search
                ,l = searchStr.length
                ,params = searchStr.substring(1,l).split("&")
                ,c
                ,pColl = {}
                ,pName
                ,pVal
                ,param;
            l = params.length;
            for(c=0;c<l;c++){
                param = params[c].split("=");
                pName = param[0];
                pVal  = param[1];
                pColl[pName] = pVal || "";
            }
            this.urlCollection[locScope] = pColl;
            return pColl;
        }
        ,getUrlParam  : function(pName,locScope){
            locScope = locScope || window;
            var pColl = this.urlCollection[locScope];
            if(!pColl){
                pColl = this.parseUrlForParams(locScope);
            }
            return pColl[pName] || "";
        }
        ,getAllUrlParams : function(locScope){
            var pColl = this.urlCollection[locScope];
            if(!pColl){
                pColl = this.parseUrlForParams(locScope);
            }
            return pColl;
        }
        ,getQueryStringForObject  : function(obj){    
            var pName , pVal , qStr = [];
            for(pName in obj){
                if(obj.hasOwnProperty(pName)){
                    pVal = obj[pName];
                    if(pVal){
                        qStr.push(pName + "=" + pVal);
                    }
                }
            }
            return qStr.join("&");
        }
        /*  END : URL Params Util */
        /*  END : postMessage Util */
    };    
    PubMatic.util = PubMatic.util || new PubMatic.UtilClass();    
    PubMatic.AdTagInfoClass = function (){

    };
    /*  BEG : postMessage Util */
    PubMatic.AdTagInfoClass.prototype = {
        info            : {}
        ,nwIds          : null
        ,timeOutId      : null
        ,lastHashMsg    : null
        ,updateAdTagObj : function () {
            var hashStr = decodeURIComponent(document.location.hash)
                , s1    = hashStr.split("]&")       //First Level Split Array
                , l     = s1.length                 
                , s2                                //Second Level Split Array
                , id                                //Id of the property
                , val;                              //Value of the property
            while(l--){
                s2 = s1[l].split("=[");
                id = s2[0].replace("#" , "");
                val= s2[1].replace("]" , "");
                if(val.indexOf(",") > -1){
                    val = val.split(",");
                }
                this.info[id] = val;
            }
            this.lastHashMsg = document.location.hash;
            //Take care of nwIds.
            this.info.nwIds = this.info.nwIds instanceof Array 
                            ? this.info.nwIds
                            : [this.info.nwIds];
            return this.info;
        }
        ,getInfoObj     : function () {
            //console.log("getInfoObj triggered");
            if (this.lastHashMsg !== document.location.hash) {
                this.updateAdTagObj();
            }
            return this.info;
        }
    };
    window.adTag = new PubMatic.AdTagInfoClass();
</script></head><body marginwidth="0" marginheight="0"></body></html>